import express from "express";
import indexRouter from "./router/index-router.js";
const app = express();
import bodyParser from "body-parser";
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use("/api", indexRouter);

app.listen(3000, () => console.log("服务器启动成功"));
